<%@ include file="/common/taglibs.jsp"%>
<probiz:pageHeading pageHeadingKey="tagList.heading" />
<head>
	<c:set var="noToolBar" value="true" scope="request"/><%-- 不需要工具栏 --%>
</head>

<div class="top clearfix">
	<ul class="tab">
		<li class="curr"><span><fmt:message key="tagList.heading"/></span></li>
	</ul>
</div>
<div class="modify">
	<a href="javascript:void(0)" onclick="addTag()" class="none"><span class="add_sku"></span><fmt:message key="tagDetail.addTag"/></a>
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="com_modi_table">
		<tr>
			<td>
				<input type="hidden" name="module" id="module" value="${param.module}"/>
				<table id="tagListTable" class="op_table" cellspacing="0" cellpadding="0" border="0" width="100%">
					<tr>
						<th style="width:60%"><fmt:message key="tag.tagName"/></th>
						<th style=""><fmt:message key="tagDetail.operation"/></th>
					</tr>
				</table>
			</td>
		</tr>	
	</table>
</div>

<script type="text/javascript" src="${ctxPath}/scripts/probiz/other/tagList.js?rs=${appConfig.rs}"></script>
<script type="text/javascript">
$j(document).ready(function () {
	__FMTExtend = {
		tagDetail_inputTagName:"<fmt:message key="tagDetail.inputTagName"/>",
		tagDetail_tagName_notNull:"<fmt:message key="tagDetail.tagName.notNull"/>",
		tagDetail_tagName_tooLong:"<fmt:message key="tagDetail.tagName.tooLong"/>",
		tagDetail_addTag:"<fmt:message key="tagDetail.addTag"/>",
		tagDetail_rename:"<fmt:message key="tagDetail.rename"/>",
		tagDetail_delete:"<fmt:message key="tagDetail.delete"/>",
		tagDetail_delete_confirm:"<fmt:message key="tagDetail.delete.confirm"/>",
		tagDetail_exceedMaxLength:"<fmt:message key="tagDetail.exceedMaxLength"/>",
		tagDetail_exceedMaxCount:"<fmt:message key="tagDetail.exceedMaxCount"/>"
	};
	$j.extend(__FMT, __FMTExtend); 
});	

$j(document).ready(function(){
	<c:forEach items="${tagList}" var="tag">
		<common:javascriptEscape value="${tag.tagName}" returnValue="tagName"/>
		newTag({id:"${tag.tagId}",tagName:"${tagName}",module:"${tag.module}"});
	</c:forEach>
});
</script>